import { defHttp } from "@/utils/http";

// ERP 肾透析明细API
export const dialysisApi = {
	// 获得肾透析明细分页
	dialysisList: async (params: any) => {
		return await defHttp.get({ url: `/whs/dialysis/page`, params });
	},
	// 新增肾透析明细
	dialysisCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/dialysis/create`, data });
	},

	// 修改肾透析明细
	dialysisUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/dialysis/update`, data });
	},

	// 删除肾透析明细
	dialysisDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/dialysis/delete?id=` + id });
	}
};
